<?php
$this->breadcrumbs=array(
	'Bitacora'=>array('admin'),

);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('tbitacora-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Bitacora del Sistema</h1>


<?php echo CHtml::link('Busqueda Avanzada','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display: none"><?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?></div>
<!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'tbitacora-grid',
	'dataProvider'=>$model->search(),
	'columns'=>array(
		'fechaActual',
		'hora',
		'descripcion',
		'ip',
		'usuarios_login',
		array(
			'class'=>'CButtonColumn',
			'buttons'=>array(
					'update'=>array('visible'=>'false'),
					'delete'=>array('visible'=>'false'),
			),
		),
	),
)); ?>
